package com.ajs.multipledatasources.dao;

import com.ajs.multipledatasources.entity.Teacher;
import com.ajs.multipledatasources.mapper.TeacherMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class TeacherDao {
    @Autowired
    private TeacherMapping tm2;

    public void save(Teacher t) {
        tm2.save(t);
    }

}
